home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / defcon-minus.swf / scripts / frame_3 / DoAction.as < prev   
Encoding:
Text File  |  2011-10-17  |  862 b   |  55 lines

  1. function goToThisURL()
  2. {
  3.    7;
  4.    8;
  5.    getURL(linkURL,"_blank");
  6.    9;
  7. }
  8. function someFunctionName()
  9. {
  10.    2;
  11.    3;
  12.    getUrl("http://www.crushy-media.co.uk", "_blank");
  13.    4;
  14. }
  15. function someFunctionName()
  16. {
  17.    2;
  18.    3;
  19.    getUrl("http://www.everybodypanic.org", "_self");
  20.    4;
  21. }
  22. 1;
  23. var linkURL = "http://www.hallpass.com";
  24. 2;
  25. var linkText = "HallPass";
  26. 3;
  27. 4;
  28. var myMenu = new ContextMenu();
  29. 5;
  30. 6;
  31. 10;
  32. 11;
  33. var copyright = new ContextMenuItem(linkText,goToThisURL);
  34. 12;
  35. 13;
  36. myMenu.customItems.push(copyright);
  37. 14;
  38. 15;
  39. myMenu.hideBuiltInItems();
  40. 16;
  41. 17;
  42. _root.menu = myMenu;
  43. 1;
  44. 5;
  45. var menuItem = new ContextMenuItem("Crushy-Media",someFunctionName);
  46. 6;
  47. 7;
  48. myMenu.customItems.push(menuItem);
  49. 1;
  50. 5;
  51. var menuItem = new ContextMenuItem("EverybodyPanic",someFunctionName);
  52. 6;
  53. 7;
  54. myMenu.customItems.push(menuItem);
  55.